﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="tables" targetNamespace="http://tempuri.org/tables1.xsd" xmlns:mstns="http://tempuri.org/tables1.xsd" xmlns="http://tempuri.org/tables1.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection ConnectionStringObject="Data Source=.\Records.sdf" IsAppSettingsProperty="false" Modifier="Assembly" Name="Records.sdf" ParameterPrefix="@" Provider="Microsoft.SqlServerCe.Client.3.5" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblMedicationTableAdapter" GeneratorDataComponentClassName="tblMedicationTableAdapter" Name="tblMedication" UserDataComponentName="tblMedicationTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="Records.sdf" DbObjectName="tblMedication" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [tblMedication] ([Medication]) VALUES (@p1)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Medication" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT [id], [Medication] FROM [tblMedication]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="id" DataSetColumn="id" />
              <Mapping SourceColumn="Medication" DataSetColumn="Medication" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblRecordsTableAdapter" GeneratorDataComponentClassName="tblRecordsTableAdapter" Name="tblRecords" UserDataComponentName="tblRecordsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="Records.sdf" DbObjectName="tblRecords" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [tblRecords] ([InsulinLevel], [SugarLevel], [TimeOfDay], [Medication]) VALUES (@p1, @p2, @p3, @p4)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InsulinLevel" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SugarLevel" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TimeOfDay" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Medication" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT [id], [InsulinLevel], [SugarLevel], [TimeOfDay], [Medication] FROM [tblRecords]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="id" DataSetColumn="id" />
              <Mapping SourceColumn="InsulinLevel" DataSetColumn="InsulinLevel" />
              <Mapping SourceColumn="SugarLevel" DataSetColumn="SugarLevel" />
              <Mapping SourceColumn="TimeOfDay" DataSetColumn="TimeOfDay" />
              <Mapping SourceColumn="Medication" DataSetColumn="Medication" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblTimeOfDayTableAdapter" GeneratorDataComponentClassName="tblTimeOfDayTableAdapter" Name="tblTimeOfDay" UserDataComponentName="tblTimeOfDayTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="Records.sdf" DbObjectName="tblTimeOfDay" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [tblTimeOfDay] ([TimeOfDay]) VALUES (@p1)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TimeOfDay" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT [id], [TimeOfDay] FROM [tblTimeOfDay]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="id" DataSetColumn="id" />
              <Mapping SourceColumn="TimeOfDay" DataSetColumn="TimeOfDay" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="tables" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="tables" msprop:Generator_UserDSName="tables" msprop:EnableTableAdapterManager="False">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="tblMedication" msprop:Generator_UserTableName="tblMedication" msprop:Generator_RowDeletedName="tblMedicationRowDeleted" msprop:Generator_TableClassName="tblMedicationDataTable" msprop:Generator_RowChangedName="tblMedicationRowChanged" msprop:Generator_RowClassName="tblMedicationRow" msprop:Generator_RowChangingName="tblMedicationRowChanging" msprop:Generator_RowEvArgName="tblMedicationRowChangeEvent" msprop:Generator_RowEvHandlerName="tblMedicationRowChangeEventHandler" msprop:Generator_TablePropName="tblMedication" msprop:Generator_TableVarName="tabletblMedication" msprop:Generator_RowDeletingName="tblMedicationRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="id" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnVarNameInTable="columnid" msprop:Generator_ColumnPropNameInTable="idColumn" type="xs:int" />
              <xs:element name="Medication" msprop:Generator_UserColumnName="Medication" msprop:Generator_ColumnPropNameInRow="Medication" msprop:Generator_ColumnVarNameInTable="columnMedication" msprop:Generator_ColumnPropNameInTable="MedicationColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblRecords" msprop:Generator_UserTableName="tblRecords" msprop:Generator_RowDeletedName="tblRecordsRowDeleted" msprop:Generator_TableClassName="tblRecordsDataTable" msprop:Generator_RowChangedName="tblRecordsRowChanged" msprop:Generator_RowClassName="tblRecordsRow" msprop:Generator_RowChangingName="tblRecordsRowChanging" msprop:Generator_RowEvArgName="tblRecordsRowChangeEvent" msprop:Generator_RowEvHandlerName="tblRecordsRowChangeEventHandler" msprop:Generator_TablePropName="tblRecords" msprop:Generator_TableVarName="tabletblRecords" msprop:Generator_RowDeletingName="tblRecordsRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="id" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnVarNameInTable="columnid" msprop:Generator_ColumnPropNameInTable="idColumn" type="xs:int" />
              <xs:element name="InsulinLevel" msprop:Generator_UserColumnName="InsulinLevel" msprop:Generator_ColumnPropNameInRow="InsulinLevel" msprop:Generator_ColumnVarNameInTable="columnInsulinLevel" msprop:Generator_ColumnPropNameInTable="InsulinLevelColumn" type="xs:int" />
              <xs:element name="SugarLevel" msprop:Generator_UserColumnName="SugarLevel" msprop:Generator_ColumnPropNameInRow="SugarLevel" msprop:Generator_ColumnVarNameInTable="columnSugarLevel" msprop:Generator_ColumnPropNameInTable="SugarLevelColumn" type="xs:int" />
              <xs:element name="TimeOfDay" msprop:Generator_UserColumnName="TimeOfDay" msprop:Generator_ColumnPropNameInRow="TimeOfDay" msprop:Generator_ColumnVarNameInTable="columnTimeOfDay" msprop:Generator_ColumnPropNameInTable="TimeOfDayColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Medication" msprop:Generator_UserColumnName="Medication" msprop:Generator_ColumnPropNameInRow="Medication" msprop:Generator_ColumnVarNameInTable="columnMedication" msprop:Generator_ColumnPropNameInTable="MedicationColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblTimeOfDay" msprop:Generator_UserTableName="tblTimeOfDay" msprop:Generator_RowDeletedName="tblTimeOfDayRowDeleted" msprop:Generator_TableClassName="tblTimeOfDayDataTable" msprop:Generator_RowChangedName="tblTimeOfDayRowChanged" msprop:Generator_RowClassName="tblTimeOfDayRow" msprop:Generator_RowChangingName="tblTimeOfDayRowChanging" msprop:Generator_RowEvArgName="tblTimeOfDayRowChangeEvent" msprop:Generator_RowEvHandlerName="tblTimeOfDayRowChangeEventHandler" msprop:Generator_TablePropName="tblTimeOfDay" msprop:Generator_TableVarName="tabletblTimeOfDay" msprop:Generator_RowDeletingName="tblTimeOfDayRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="id" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnVarNameInTable="columnid" msprop:Generator_ColumnPropNameInTable="idColumn" type="xs:int" />
              <xs:element name="TimeOfDay" msprop:Generator_UserColumnName="TimeOfDay" msprop:Generator_ColumnPropNameInRow="TimeOfDay" msprop:Generator_ColumnVarNameInTable="columnTimeOfDay" msprop:Generator_ColumnPropNameInTable="TimeOfDayColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>